home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
GETUTILS.ARJ
/
DOW.BAT
next >
Wrap
DOS Batch File
|
1991-07-01
|
619b
|
35 lines
echo off
cls
echo This batch file demonstrates the use of the GETDOW command.
echo .
echo It illustrates how to load a program only on Mondays.
echo .
GETDOW
if errorlevel==6 goto Saturday
if errorlevel==5 goto Friday
if errorlevel==4 goto Thursday
if errorlevel==3 goto Wednesday
if errorlevel==2 goto Tuesday
if errorlevel==1 goto Monday
if errorlevel==0 goto Sunday
goto end
:Saturday
goto end
:Friday
goto end
:Thursday
goto end
:Wednesday
goto end
:Tuesday
goto end
:Monday
rem Monday's routine commands need to go here.
Echo Today is Monday!!!
goto end
:Sunday
goto end
:end